Method of performing internal processing operation of memory device

ABSTRACT

Provided is a method of performing an internal processing operation of a memory device in a system including a host device and the memory device. The memory device includes a memory cell array and a processor-in-memory (PIM) performing an internal processing operation. In an internal processing mode, by the PIM, the memory device performs the internal processing operation based on internal processing information stored in the memory cell array. When the internal processing information is an internal processing operation command indicating a type of the internal processing operation, the memory device outputs the internal processing operation command including an internal processing read command and an internal processing write command to the host device. The host device issues to the memory device a priority command determined from among a data transaction command and the internal processing operation command.

CROSS-REFERENCE TO THE RELATED APPLICATION

This application is a continuation of U.S. patent application Ser. No. 16/251,983, filed Jan. 18, 2019, which claims priority from Korean Patent Application No. 10-2018-0088682, filed on Jul. 30, 2018, in the Korean Intellectual Property Office, the disclosures of which are incorporated herein in their entirety by reference.

BACKGROUND

Apparatuses and methods consistent with exemplary embodiments of the inventive concept relate to a memory device performing an internal processing operation, a method of operating the memory device, and a memory system including the memory device.

Various systems such as computer graphics, servers, supercomputers, and networks that require high performance and low power consumption are being developed. These systems include memory devices which store data or instructions used by hosts included in the systems or perform computational operations.

A dynamic random access memory (DRAM) is a memory device having high response speed and high operation speed characteristics. A system generally uses the DRAM as a working memory or a main memory of the system. A general DRAM writes data or reads written data under the control of a host. When performing a computational operation, the host retrieves instructions and/or data from the DRAM and uses the data to execute the instructions and/or to perform the computational operation. When there are results of the computational operation, the host writes the results of the computational operation back to the DRAM.

System performance may be degraded if an operation of retrieving instructions and/or data from the DRAM and writing back to the DRAM is relatively slow while a computational operation performed by the host is considerably fast. Also, in the case of a data-intensive system, system performance may be degraded due to the memory bandwidth limitation of the DRAM.

In order to improve the system performance, a memory device including an internal processor is developed to perform some of the computation operations of the host by internal processing. The computational workload of the host may be reduced due to the internal processing of the memory device.

However, in order to prevent a collision between the internal processing and the processing by the host, the memory device may need to perform an arbiter function to determine a priority thereof. Also, the memory device may perform an operation of reading and writing in the memory device by internal processing. In this case, when data stored in a cache of the host is changed in the memory device, the data in the cache is not the latest data, whereby there may be a limitation in the coherence of cache data. Accordingly, the memory device may need to perform a virtual memory management function such as a virtual memory address translation across the host and the memory device.

Performing the arbiter function and the virtual memory management function in the memory device performing the internal processing may have a limitation in that the hardware configurations and/or implementations of the memory device are complex and difficult.

Information disclosed in this Background section has already been known to the inventors before achieving the disclosure of the present application or is technical information acquired in the process of achieving the disclosure. Therefore, it may contain information that does not form the prior art that is already known to the public.

SUMMARY

Exemplary embodiments of the inventive concept provide a memory device performing an internal processing operation by entrusting an arbiter function and a virtual memory management function to a host, a method of operating the memory device, and a system including the memory device.

According to an aspect of the inventive concept, there is provided a memory device including: a memory cell array configured to store internal processing information; and a processor-in-memory (PIM) configured to perform an internal processing operation based on the internal processing information in an internal processing mode, wherein, in response to determining that the internal processing information includes an internal processing operation command indicating a type of the internal processing operation, the PIM outputs the internal processing operation command to an external device.

According to an aspect of the inventive concept, there is provided a method of operating a memory device including a memory cell array and a processor-in-memory (PIM) performing an internal processing operation, the method including: entering an internal processing mode under control of an external device; performing, by the PIM, the internal processing operation in the internal processing mode based on internal processing information stored in the memory cell array; and in response to determining that the internal processing information includes an internal processing operation command indicating a type of the internal processing operation, outputting the internal processing operation command to the external device.

According to an aspect of the inventive concept, there is provided a host device including: a host processor configured to perform a computational operation and issue a memory request command according to the computational operation; and a memory controller configured to receive the memory request command, issue a data transaction command for accessing a memory device according to the memory request command, and control an internal processing mode of the memory device, wherein the memory controller is further configured to receive from the memory device an internal processing operation command generated during an internal processing operation in the internal processing mode, and issue to the memory device a priority command determined from among the data transaction command and the internal processing operation command.

According to an aspect of the inventive concept, there is provided a method of operating a host device including a host processor and a memory controller, the method including: issuing, by the host processor, a memory request command according to a computational operation; issuing, by the memory controller, a data transaction command for accessing a memory device according to the memory request command; controlling, by the memory controller, the memory device to enter an internal processing mode; receiving, by the memory controller, an internal processing operation command generated during an internal processing operation in the internal processing mode, from the memory device; and issuing, by the memory controller, a priority command determined from among the data transaction command and the internal processing operation command, to the memory device.

According to an aspect of the inventive concept, there is provided a system including: a host device performing a computational operation; and a memory device performing, under control of the host device, an internal processing operation based on a memory request operation according to the computational operation and internal processing information stored in a memory cell array, wherein, the internal processing information includes an internal processing operation command which the memory device transmits to the host device, and wherein, according to the internal processing operation command, the host device controls the memory device to perform the internal processing operation.

BRIEF DESCRIPTION OF THE DRAWINGS

Exemplary embodiments of the inventive concept will be more clearly understood from the following detailed description taken in conjunction with the accompanying drawings in which:

FIG. 1 is a block diagram illustrating a system including a memory device performing an internal processing operation, according to an embodiment of the inventive concept;

FIG. 2 is a diagram illustrating an operation of the system of FIG. 1;

FIG. 3 is a block diagram illustrating a memory device according to an embodiment of the inventive concept;

FIG. 4 is a flowchart illustrating a method of operating a memory device, according to an embodiment of the inventive concept;

FIG. 5 is a flowchart illustrating a method of operating a host device, according to an embodiment of the inventive concept;

FIG. 6 is a block diagram illustrating a system including a memory device performing an internal processing operation, according to another embodiment of the inventive concept;

FIG. 7 is a block diagram illustrating a server system to which a system including a memory device performing an internal processing operation, according to an embodiment of the inventive concept, may be applied; and

FIG. 8 is a block diagram illustrating a data center to which a system including a memory device performing an internal processing operation, according to an embodiment of the inventive concept, may be applied.

DETAILED DESCRIPTION OF THE EMBODIMENTS

The embodiments described herebelow are all exemplary, and thus, the inventive concept is not limited to these embodiments disclosed below and may be realized in various other forms. An embodiment provided in the following description is not excluded from being associated with one or more features of another example or another embodiment also provided herein or not provided herein but consistent with the inventive concept. For example, even if matters described in a specific example are not described in a different example thereto, the matters may be understood as being related to or combined with the different example, unless otherwise mentioned in descriptions thereof.

FIG. 1 is a block diagram illustrating a system including a memory device performing an internal processing operation, according to an embodiment of the inventive concept.

Referring to FIG. 1, a system 100 may include a host device 110 and a memory device 120. The host device 110 may be communicatively connected to the memory device 120 through channels CH1 and CH2. The memory device 120 may operate in any one of a normal mode of performing a data transaction operation and an internal processing mode of performing an internal processing operation. The data transaction operations of the memory device 120 may include write/read operations to/from a memory cell array 122. The memory device 120 may be a processor-in-memory (PIM)-type memory device including a PIM performing an internal processing operation.

The host device 110 may be, for example, a computing system such as a computer, a notebook computer, a server, a workstation, a portable communication terminal, a personal digital assistant (PDA), a portable multimedia player (PMP), a smart phone, or a wearable device. Alternatively, the host device 110 may be some of the components included in a computing system, such as a graphics card.

The host device 110 may include a host processor 112, a memory controller 114, and a PIM agent 116. The host processor 112, the memory controller 114, and the PIM agent 116 may be interconnected through a bus 118 including at least one or more signal lines.

The host processor 112 may be a functional block performing general computational operations in the system 100, and may correspond to a central processing unit (CPU), a graphics processing unit (GPU), or an application processor (AP). The host processor 112 may issue a memory request command MEMREQ CMD associated with memory requests for computational operations. The host processor 112 may include a memory management unit (MMU). When the MMU issues memory request commands MEMREQ CMD to the memory device 120, the MMU may perform a virtual memory management function such as a virtual memory address translation.

The memory controller 114 may access the memory device 120 according to the memory request commands MEMREQ CMD of the host processor 112. The memory controller 114 may prioritize and issue the memory request commands MEMREQ CMD to the memory device 120. That is, the memory controller 114 may perform an arbiter function.

The memory controller 114 may control the memory device 120 to write data to the memory device 120 or to read data written in the memory device 120. The memory controller 114 may control a write or read operation on the memory device 120 by providing a command CMD and an address ADDR to the memory device 120. Also, write data DQ and read data DQ may be exchanged between the memory controller 114 and the memory device 120. This data transaction operation may be performed through a first channel CH1 performing a predetermined protocol (e.g., DDR protocol) between the host device 110 and the memory device 120. The first channel CH1 may include buses or signal lines for transmitting the command CMD, the address ADDR, and the data DQ.

The PIM agent 116 may control the memory device 120 to operate in the internal processing mode. The PIM agent 116 may generate and transmit an internal processing mode signal IPM to the memory device 120. The memory device 120 may perform an internal processing operation in response to the internal processing mode signal IPM. The internal processing mode signal IPM may be a particular dedicated signal. In this case, the internal processing mode signal IPM may be transmitted to the memory device 120 through buses and/or signal lines of a second channel CH2 between the host device 110 and the memory device 120.

According to an embodiment, the PIM agent 116 may activate and transmit the internal processing mode signal IPM to the memory device 120. The internal processing mode signal IPM may be transmitted to the memory device 120 as a combination of several signals, such as a command combination, a mode register set (MRS), or an address combination. In this case, the internal processing mode signal IPM may be transmitted to the memory device 120 through the buses and/or signal lines of the first channel CH1 between the host device 110 and the memory device 120.

The internal processing mode signal IPM may allow the memory device 120 to operate in the internal processing mode. In the internal processing mode, an internal processing operation may include accessing the memory cell array 122 to perform a processing operation on the data stored in the memory cell array 122.

For example, the internal processing operation may be a processing operation on the data stored in the memory cell array 122, such as data inversion, data shift, data swap, data comparison, logical operations (AND, XOR, etc.), or mathematical operations (addition, subtraction, etc.). The memory device 120 may transmit an internal processing operation command IPCMD indicating a type of the internal processing operation to the host device 110. In this case, the internal processing operation command IPCMD may be transmitted to the PIM agent 116 through the buses and/or signal lines of the second channel CH2 between the host device 110 and the memory device 120. The internal processing operation command IPCMD may include an internal processing read command PIM_READ and/or an internal processing write command PIM_WRITE.

The PIM agent 116 may receive, from the memory device 120, the internal processing operation command IPCMD generated while the memory device 120 operates in the internal processing mode. The PIM agent 116 may transmit the received internal processing operation command IPCMD to the memory controller 114 through the bus 118. The memory controller 114 may receive the internal processing operation command IPCMD and transmit the received internal processing operation command IPCMD to the memory device 120 as the command CMD. The memory controller 114 may transmit the internal processing read command PIM_READ and/or the internal processing write command PIM_WRITE constituting the internal processing operation command IPCMD to the memory device 120 as the command CMD. In this case, the internal processing operation command IPCMD may be transmitted to the memory device 120 through the command (CMD) buses and/or signal lines of the first channel CH1 between the host device 110 and the memory device 120.

When an internal processing operation according to internal processing information IPI stored in the memory cell array 122 in the memory device 120 is completed, the memory device 120 may transmit, to the host device 110, a completion signal DONE indicating that the internal processing operation is completed. When the PIM agent 116 of the host device 110 receives the completion signal DONE, the internal processing mode of the memory device 120 may be exited. In this case, the completion signal DONE may be transmitted to the PIM agent 116 through the buses and/or signal lines of the second channel CH2 between the host device 110 and the memory device 120.

The memory controller 114 may receive a memory request command MEMREQ CMD of the host processor 112, and generate a data transaction command to perform a data transaction operation according to the memory request command MEMREQ CMD. The memory controller 114 may issue a data transaction command according to a data transaction operation to the memory device 120, and the memory device 120 may operate in the normal mode according to the data transaction command. The memory controller 114 may issue the internal processing operation command IPCMD to the memory device 120, and the memory device 120 may operate in the internal processing mode.

When issuing the data transaction command and the internal processing operation command IPCMD to the memory device 120, the memory controller 114 may prioritize and issue these commands to the memory device 120. The memory controller 114 may perform an arbiter function to determine or select a priority command to be preferentially processed from among the data transaction command and the internal processing operation command IPCMD, and issue the priority command to the memory device 120. The memory controller 114 may issue the priority command to the memory device 120 through the CMD buses and/or CMD signal lines of the first channel CH1 between the host device 110 and the memory device 120.

The memory device 120 may write data or read data under the control of the memory controller 114. For example, the memory device 120 may include dynamic random access memory (DRAM). However, the inventive concept is not limited thereto, and the memory device 120 may include any one of volatile memory devices such as Static RAM (SRAM), DRAM, Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDR SDRAM) Low Power Double Data Rate (LPDDR) SDRAM, Wide I/O DRAM, High Bandwidth Memory (HBM), and Hybrid Memory Cube (HMC). According to an embodiment, the memory device 120 may include any one of nonvolatile memory devices such as flash memory devices, Phase-change RAM (PRAM), Magnetic RAM (MRAM), Resistive RAM (RRAM), and Ferroelectric RAM (FRAM).

The memory device 120 may include a memory cell array 122 and a PIM 124. The memory cell array 122 and the PIM 124 may be interconnected through at least one or more signal lines 126.

The memory cell array 122 may include a plurality of memory cells. The plurality of memory cells may be connected to a plurality of word lines and a plurality of bit lines, respectively. The memory cell array 122 may store internal processing information IPI under the control of the host device 110. The internal processing information IPI may be information for an internal processing operation performed by the PIM 124, and may include information such as an internal processing operation command IPCMD and internal processing data. The internal processing data may include particular address information according to the internal processing operation command IPCMD such as data swap.

The PIM 124 may perform an internal processing operation under the control of the host device 110. The PIM 124 may receive the internal processing mode signal IPM from the host device 110 and enter the internal processing mode in response to the received internal processing mode signal IPM. The PIM 124 may perform an internal processing operation based on the internal processing information IPI stored in the memory cell array 122 in the internal processing mode. For example, the internal processing operation may refer to a processing operation on the data stored in the memory cell array 122, such as data inversion, data shift, data swap, data comparison, logical operations, or mathematical operations.

The PIM 124 may generate and transmit a completion signal DONE to the host device 110 after completing the internal processing operation according to the internal processing information IPI stored in the memory cell array 122. The completion signal DONE may be transmitted to the PIM agent 116 through the buses and/or signal lines of the second channel CH2 between the host device 110 and the memory device 120.

Like the host processor 112, the PIM 124 included in the memory device 120 may be hardware having a processing function. When the PIM 124 is referred to as an internal processor, the term “internal” may mean that it is in the memory device 120. Thus, a processor that is “external” to the memory device 120 may refer to, for example, the host processor 112.

The memory device 120 may operate in a normal mode of performing a data transaction operation under the control of the host device 110 or in an internal processing mode of performing an internal processing operation.

In the normal mode, the memory device 120 may perform a data transaction operation through the first channel CH1 under the control of the host device 110. The data transaction operation may refer to performing a write operation and/or a read operation according to a predetermined Joint Electron Device Engineering Council (JEDEC) timing specification such as a DDR protocol. In the normal mode, the write operation and/or the read operation of the memory device 120 may be performed by the memory controller 114 of the host device 110. In the normal mode, a command CMD, an address ADDR, and/or data DQ for the write operation and/or the read operation of the memory device 120 may be transmitted to the memory device 120 through the buses and/or signal lines of the first channel CH1 between the host device 110 and the memory device 120.

In the internal processing mode, the memory device 120 may perform an internal processing operation through the first channel CH1 or the second channel CH2 under the control of the host device 110. The host device 110 may activate and transmit an internal processing mode signal IPM to the memory device 120 in order for the memory device 120 to enter the internal processing mode. The internal processing mode signal IPM may be transmitted through the buses and/or signal lines of the first channel CH1 or the second channel CH2 between the host device 110 and the memory device 120.

The memory device 120 may enter the internal processing mode in response to the internal processing mode signal IPM. When the internal processing mode is entered, internal processing information IPI may be written or uploaded into the memory cell array 122 under the control of the host device 110. A write operation on the internal processing information IPI may be performed by a write command CMD of the memory device 120. The internal processing information IPI may be transmitted through the buses and/or signal lines of the first channel CH1 between the host device 110 and the memory device 120.

In the internal processing mode, when the internal processing information IPI is previously written or uploaded into the memory cell array 122, the write operation on the internal processing information IPI may be skipped. For example, when the system 100 is powered on, information stored in a separate storage medium (e.g., a solid state drive (SSD)) included in the system 100 may be pre-loaded and stored into the memory cell array 122. In the internal processing mode, the memory device 120 may read the internal processing information IPI written in the memory cell array 122. The PIM 124 may read the internal processing information IPI. When the read internal processing information IPI includes or is an internal processing operation command IPCMD indicating a type of an internal processing operation (e.g., data inversion, data shift, data swap, data comparison, logical operations, or mathematical operations), the PIM 124 may transmit an internal processing read command PIM_READ and/or an internal processing write command PIM_WRITE constituting the internal processing operation command IPCMD to the host device 110. The internal processing operation command IPCMD may be transmitted to the PIM agent 116 through the buses and/or signal lines of the second channel CH2 between the host device 110 and the memory device 120.

As described above, the memory controller 114 of the host device 110 may perform an arbiter function to prioritize and issue a data transaction command and an internal processing operation command IPCMD to the memory device 120. Accordingly, the memory device 120 may not need to perform an additional arbiter function. Also, when the memory controller 114 issues an internal processing operation command IPCMD to the memory device 120, the MMU of the host processor 112 may perform a virtual memory management function such as a virtual memory address translation according to the internal processing operation command IPCMD. Accordingly, the memory device 120 may not need to perform a virtual memory management function associated with an internal processing operation. That is, since an arbiter function and a virtual memory management function are entrusted to the host device 110, the memory device 120 may perform an internal processing operation simply and easily without a complex hardware configuration and/or implementation.

FIG. 2 is a diagram illustrating an operation of the system 100 of FIG. 1.

Referring to FIG. 2 in conjunction with FIG. 1, in operation S210, the host device 110 may instruct the memory device 120 to enter the internal processing mode. The PIM agent 116 of the host device 110 may activate and transmit an internal processing mode signal IPM including a combination of various signals, such as a dedicated signal or command combination, an MRS, or an address combination, to the memory device 120. The internal processing mode signal IPM may be transmitted through the buses and/or signal lines of the first channel CH1 or the second channel CH2 between the host device 110 and the memory device 120.

In operation S220, in response to the internal processing mode signal IPM, the memory device 120 may enter the internal processing mode and perform an internal processing operation.

When the memory device 120 enters the internal processing mode, the host device 110 may control the memory device 120 such that the internal processing information IPI for the internal processing operation to be performed by the PIM 124 may be written or uploaded into the memory cell array 122. A write operation on the internal processing information IPI may be performed through the buses and/or signal lines of the first channel CH1 between the host device 110 and the memory device 120. The PIM 124 may detect whether the internal processing information IPI includes an internal processing operation command IPCMD in operation S220.

In operation S230, the memory device 120 may transmit, to the host device 110, the internal processing operation command IPCMD detected while operating in the internal processing mode.

In the internal processing mode, the PIM 124 of the memory device 120 may perform the internal processing operation based on the internal processing information IPI stored in the memory cell array 122. The PIM 124 may read the internal processing information IPI stored in the memory cell array 122. When the read internal processing information IPI includes or is an internal processing operation command IPCMD indicating a type of the internal processing operation (e.g., data inversion, data shift, data swap, data comparison, logical operations, or mathematical operations), the PIM 124 may transmit an internal processing read command PIM_READ and/or an internal processing write command PIM_WRITE constituting the internal processing operation command IPCMD to the host device 110. The internal processing operation command IPCMD including the internal processing read command PIM_READ and/or the internal processing write command PIM_WRITE may be transmitted to the PIM agent 116 through the buses and/or signal lines of the second channel CH2 between the host device 110 and the memory device 120.

In operation S240, the host device 110 may issue, to the memory device 120, the internal processing operation command IPCMD received from the memory device 120.

The PIM agent 116 of the host device 110 may receive the internal processing operation command IPCMD including the internal processing read command PIM_READ and/or the internal processing write command PIM_WRITE from the PIM 124, and transmit the received internal processing operation command IPCMD to the memory controller 114 through the bus 118. The memory controller 114 may determine or select a priority command to be preferentially processed from among the received internal processing operation command IPCMD and a data transaction command to be issued to the memory device 120.

In the present embodiment, when the priority command is the internal processing operation command IPCMD, the memory controller 114 may issue the internal processing operation command IPCMD to the memory device 120. The memory controller 114 may issue the internal processing operation command IPCMD to the memory device 120 through the CMD buses and/or CMD signal lines of the first channel CH1 between the host device 110 and the memory device 120. In another embodiment, when the priority command is a data transaction command, the memory controller 114 may issue the data transaction command to the memory device 120 through the CMD buses and/or CMD signal lines of the first channel CH1 between the host device 110 and the memory device 120.

In operation S250, the memory device 120 may perform the internal processing operation through the signal lines 126 between the PIM 124 and the memory cell array 122 according to the internal processing operation command IPCMD including the internal processing read command PIM_READ and/or the internal processing write command PIM_WRITE issued from the memory controller 114.

Some or most of the internal processing operations may be data communication operations performed by the internal processing operation command IPCMD. The data communication operations may include an operation of reading internal processing data such as reference data, source data, destination data, or target data used in the internal processing operation from the memory cell array 122 and an operation of writing the processing result of the internal processing operation to the memory cell array 122. For example, it is assumed that the PIM 124 may perform data search, data transfer, data addition, or data swap according to the internal processing operation command IPCMD including the internal processing read command PIM_READ and/or the internal processing write command PIM_WRITE.

When the internal processing operation command IPCMD including the internal processing read command PIM_READ and/or the internal processing write command PIM_WRITE is a command for data search, the PIM 124 may determine, according to the internal processing read command PIM_READ, whether the internal processing data is stored in the memory cell array 122. The PIM 124 may output hit/miss or address information as the processing result of the data search operation. The PIM 124 may write the hit/miss or address information according to the data search operation into the memory cell array 122 according to the internal processing write command PIM_WRITE.

When the internal processing operation command IPCMD including the internal processing read command PIM_READ and/or the internal processing write command PIM_WRITE is a command for data transfer, the PIM 124 may transfer data corresponding to reference address information to a target region according to the internal processing read command PIM_READ and the internal processing write command PIM_WRITE. The PIM 124 may output address information about the target region as the processing result of the data transfer operation. The operations of transferring the data and writing the address information of the target region by the PIM 124 may be performed in the memory cell array 122.

When the internal processing operation command IPCMD including the internal processing read command PIM_READ and/or the internal processing write command PIM_WRITE is a command for data addition, the PIM 124 may read the data corresponding to the reference address information from the memory cell array 122 according to the internal processing read command PIM_READ, and may add the internal processing data to the read data and store the addition result in the memory cell array 122 according to the internal processing write command PIM_WRITE. The PIM 124 may output address information about a region where the addition result data is stored, as the processing result of the data addition operation. The operations of adding the data and writing the address information about the region where the addition result data is stored by the PIM 124 may be performed in the memory cell array 122.

When the internal processing operation command IPCMD including the internal processing read command PIM_READ and/or the internal processing write command PIM_WRITE is a command for data swap, the PIM 124 may read first and second data respectively corresponding to first and second reference address information from the memory cell array 122 according to the internal processing read command PIM_READ, swap the read first and second data, and store the swapped first and second data in the memory cells corresponding to the first and second reference address information about the memory cell array 122 according to the internal processing write command PIM_WRITE, respectively. The data swap operation by the PIM 124 may be performed in the memory cell array 122.

The above operations S220 to S250 may be repeatedly performed until the PIM 124 processes all of the internal processing information IPI stored in the memory cell array 122.

In operation S260, the memory device 120 may complete the internal processing operation according to the internal processing information IPI, and exit the internal processing mode.

The PIM 124 may transmit a completion signal DONE to the host device 110 after completing the internal processing operation according to the internal processing information IPI stored in the memory cell array 122. The completion signal DONE may be transmitted to the PIM agent 116 through the buses and/or signal lines of the second channel CH2 between the host device 110 and the memory device 120.

FIG. 3 is a block diagram illustrating a memory device according to an embodiment of the inventive concept. In the present embodiment, the memory device 120 is assumed to be DRAM; however, the scope of the inventive concept is not limited thereto.

Referring to FIGS. 1 and 3, the memory device 120 may include a memory cell array 122, a PIM 124, a command/address buffer 310, a row/column decoder 312, a sense amplifier/write driver 314, a switch circuit 316, and a data input/output (IO) buffer 318.

The memory cell array 122 may include a plurality of memory cells provided in a matrix form arranged in rows and columns. The memory cell array 122 may include a plurality of word lines and a plurality of bit lines connected to the memory cells. The plurality of word lines may be connected to the rows of the memory cells, and the plurality of bit lines may be connected to the columns of the memory cells.

The command/address buffer 310 may receive control signals corresponding to the command CMD from the memory controller 114 through the first channel CH1. The control signals may include, for example, a write enable signal/WE, a row address strobe signal/RAS, a column address strobe signal/CAS, and/or a chip selection signal/CS, and the command CMD may include, for example, an active command, a read command, a write command, and/or a precharge command.

The command/address buffer 310 may receive an address ADDR from the memory controller 114 through the first channel CH1. The address ADDR may include a row address for addressing a row of the memory cell array 122 and a column address for addressing a column of the memory cell array 122. The command/address buffer 310 may transmit the row address and the column address to the row/column decoder 312.

The row/column decoder 312 may select any one of the plurality of word lines connected to the memory cell array 122. The row/column decoder 312 may decode the row address received from the command/address buffer 310, select a word line corresponding to the row address, and activate the selected word line.

The row/column decoder 312 may select a certain bit line among the plurality of bit lines connected to the memory cell array 122. The row/column decoder 312 may decode the column address received from the command/address buffer 310 and select certain bit lines corresponding to the column address.

The sense amplifier/write driver 314 may sense a voltage change of the bit lines selected by the row/column decoder 312, and provide output data to the switch circuit 316 based on the sense-amplified voltage. Also, the sense amplifier/write driver 314 may receive data from the switch circuit 316 and write the received data into the memory cells connected to the bit lines selected by the row/column decoder 312.

The data input/output buffer 318 may receive data from the memory controller 114 through the first channel CH1, and provide the received data to the switch circuit 316. Also, the data input/output buffer 318 may receive data from the switch circuit 316 and provide the received data to the memory controller 114 through the data DQ buses and/or the data DQ signal lines of the first channel CH1.

The switch circuit 316 may be selectively controlled such that the memory device 120 performs a data transaction operation according to the normal mode of the memory device 120, and performs an internal processing operation according to the internal processing mode of the memory device 120.

In a read operation of the normal mode, the switch circuit 316 may transmit the data received from the memory cell array 122 and the sense amplifier/write driver 314 to the data input/output buffer 318. The data input/output buffer 318 may provide the data received from the switch circuit 316 to the memory controller 114 through the first channel CH1.

In a write operation of the normal mode, the switch circuit 316 may transmit the data received from the data input/output buffer 318 to the sense amplifier/write driver 314. The sense amplifier/write driver 314 may write the data received from the switch circuit 316 into the memory cells connected to the word line and bit lines selected by the row/column decoder 312.

In the internal processing mode, the switch circuit 316 may receive the internal processing information IPI from the data input/output buffer 318 and write or upload the received internal processing information IPI into the memory cell array 122 through the sense amplifier/write driver 314. Thereafter, the internal processing information IPI written into the memory cell array 122 may be accessed or read by the PIM 124.

In the internal processing mode, the switch circuit 316 may receive the internal processing information IPI read from the memory cell array 122 through the sense amplifier/write driver 314 and transmit the received internal processing information IPI to the PIM 124.

The PIM 124 may be implemented as a compute-intensive core, a GPU accelerator, or a field programmable gate array (FPGA). Alternatively, the PIM 124 may be implemented as a neural processing unit (NPU) that performs parallel computing, data reuse, locality of data values, or a deep neural network. The PIM 124 may include an internal processor 320, a control circuit 322, a command queue 324, and a command detector 326.

The internal processor 320 may perform an internal processing operation based on the internal processing information IPI. The internal processor 320 may receive the internal processing mode signal IPM from the host device 110 and enter the internal processing mode in response to the received internal processing mode signal IPM. In the internal processing mode, the internal processor 320 may read the internal processing information IPI from the memory cell array 122 and perform an internal processing operation based on the read internal processing information IPI. The internal processor 320 may generate and transmit a completion signal DONE to the PIM agent 116 after completing the internal processing operation according to the internal processing information IPI.

According to the normal mode or the internal processing mode of the memory device 120, the control circuit 322 may control the switch circuit 316 to configure a data path.

In the normal mode, the control circuit 322 may control the switch circuit 316 to configure a normal data path connecting the first channel CH1, the data input/output buffer 318, the switch circuit 316, the sense amplifier/write driver 314, and the memory cell array 122. A data transaction operation may be performed through the normal data path.

In the internal processing mode, the control circuit 322 may control the switch circuit 316 to write or upload the internal processing information IPI into the memory cell array 122. In this case, the control circuit 322 may configure a normal data path connecting the first channel CH1, the data input/output buffer 318, the switch circuit 316, the sense amplifier/write driver 314, and the memory cell array 122, and the internal processing information IPI transmitted through the normal data path may be written into the memory cell array 122.

In the internal processing mode, the control circuit 322 may control the switch circuit 316 to configure an internal operation data path connecting the PIM 124, the switch circuit 316, the sense amplifier/write driver 314, and the memory cell array 122. The internal processing information IPI read from the memory cell array 122 through the internal operation data path may be transmitted to the internal processor 320 of the PIM 124. Also, the processing result of the internal processing operation performed according to the internal processing information IPI in the internal processor 320 through the internal operation data path may be written back to the memory cell array 122.

When the internal processing information IPI read from the memory cell array 122 includes or is an internal processing operation command IPCMD indicating a type of the internal processing operation, the internal processor 320 may store an internal processing read command PIM_READ and/or an internal processing write command PIM_WRITE constituting the internal processing operation command IPCMD in the command queue 324. The command queue 324 may store the internal processing operation command IPCMD including at least one of the internal processing read command PIM_READ and the internal processing write command PIM_WRITE.

The internal processing operation command IPCMD of the command queue 324 may be transmitted to the PIM agent 116 through the second channel CH2, and the PIM agent 116 may transmit the internal processing operation command IPCMD received from the command queue 324 to the memory controller 114 through the bus 118 in the host device 110. The memory controller 114 may transmit the internal processing operation command IPCMD including the received internal processing read command PIM_READ and/or the internal processing write command PIM_WRITE as the command CMD to the command/address buffer 310 of the memory device 120 through the first channel CH1.

The command detector 326 may determine whether the command CMD received by the command/address buffer 310 includes or is an internal processing operation command IPCMD. When it is determined that the received command CMD includes or is an internal processing operation command IPCMD, the command detector 326 may transmit the internal processing operation command IPCMD to the internal processor 320. The internal processor 320 may perform an internal processing operation according to the internal processing operation command IPCMD including the internal processing read command PIM_READ and/or the internal processing write command PIM_WRITE.

FIG. 4 is a flowchart illustrating a method of operating a memory device, according to an embodiment of the inventive concept.

Referring to FIGS. 3 and 4, in operation S410, the PIM 124 may receive an internal processing mode signal IPM and enter the internal processing mode in response to the internal processing mode signal IPM.

In operation S412, the PIM 124 may perform an internal processing operation based on the internal processing information IPI stored in the memory cell array 122.

In operation S414, the PIM 124 may transmit to the PIM agent 116 of the host device 110 an internal processing operation command IPCMD generated during operation in the internal processing mode. The PIM 124 may read the internal processing information IPI from the memory cell array 122. When the read internal processing information IPI includes or is an internal processing operation command IPCMD, the PIM 124 may transmit to the PIM agent 116 an internal processing read command PIM_READ and/or an internal processing write command PIM_WRITE constituting the internal processing operation command IPCMD.

In operation S416, the command/address buffer 310 may receive a command CMD from the memory controller 114 of the host device 110.

In operation S420, the command detector 326 may determine whether the command CMD received from the memory controller 114 includes or is an internal processing operation command IPCMD. As a result of the determination, when the command CMD received from the memory controller 114 includes or is the internal processing operation command IPCMD, the method may proceed to operation S422, and when the received command CMD does not include or is not the internal processing operation command IPCMD, the method may proceed to operation S430.

In operation S422, the PIM 124 may perform an internal processing operation with the memory cell array 122 according to the internal processing operation command IPCMD. That is, the internal processing data used in the internal processing operation according to the internal processing operation command IPCMD may be read from the memory cell array 122 or the processing result of the internal processing operation may be written into the memory cell array 122.

In operation S424, the PIM 124 may determine whether the internal processing operation is completed based on the internal processing information IPI stored in the memory cell array 122. For example, the PIM 124 may determine whether there is any internal processing information IPI remaining in the memory cell array 122. As a result of the determination, when the internal processing operation is completed, the method may proceed to operation S426. When there remains an internal processing operation to be performed based on the internal processing information IPI, the method may proceed to operation S412 and perform the internal processing operation based on the remaining internal processing information IPI.

In operation S426, the PIM 124 may transmit a completion signal DONE of the internal processing operation to the PIM agent 116 of the host device 110 and exit the internal processing operation mode.

As a result of the determination in operation S420, when the command CMD received from the memory controller 114 does not include or is not the internal processing operation command IPCMD, that is, when the command CMD includes or is a data transaction command, a data transaction operation such as a data communication operation may be performed between the memory controller 114 and the memory cell array 122 according to the data transaction command (operation S430).

FIG. 5 is a flowchart illustrating a method of operating a host device, according to an embodiment of the inventive concept.

Referring to FIGS. 1 and 5, in operation S510, the host processor 112 may issue a memory request command MEMREQ CMD for a computational operation to the memory controller 114, which generates a data transaction command to perform a data transaction operation according to the memory request command MEMREQ CMD.

In operation S512, the PIM agent 116 may transmit an internal processing mode signal IPM to the PIM 124 of the memory device 120. The PIM 124 may enter the internal processing mode and perform an internal processing operation in response to the internal processing mode signal IPM.

In operation S514, the PIM agent 116 may receive an internal processing operation command IPCMD including an internal processing read command PIM_READ and/or an internal processing write command PIM_WRITE generated during the internal processing operation of the PIM 124. The PIM agent 116 may transmit the received internal processing operation command IPCMD to the memory controller 114.

In operation S516, the memory controller 114 may perform an arbiter function between the data transaction command and the internal processing operation command IPCMD to determine a priority thereof. As a result of the determination, when the priority command is the internal processing operation command IPCMD, the method may proceed to operation S520, and when the priority command is the data transaction command for the computational operation, the method may proceed to operation S530.

In operation S520, the memory controller 114 may issue the internal processing operation command IPCMD to the memory device 120 through the CMD buses and/or the CMD signal lines of the first channel CH1. In this case, the memory controller 114 may perform a virtual memory management function such as a virtual memory address translation associated with the internal processing operation command IPCMD, and issue the internal processing operation command IPCMD to the memory device 120.

In operation S522, the PIM 124 may perform an internal processing operation such as a data communication operation with the memory cell array 122 according to the internal processing operation command IPCMD.

In operation S524, the PIM agent 116 may receive a completion signal DONE of the internal processing operation from the PIM 124 when the PIM 124 completes the internal processing operation according to the internal processing information IPI.

In operation S530, the memory controller 114 may issue a data transaction command for a computational operation to the memory device 120 through the CMD buses and/or the CMD signal lines of the first channel CH1. In this case, the memory controller 114 may issue the data transaction command to the memory device 120 by performing a virtual memory management function such as a virtual memory address translation associated with the data transaction command.

In operation S532, the memory controller 114 may perform a data communication operation with the memory cell array 122 according to the data transaction command associated with memory requests.

FIG. 6 is a block diagram illustrating a system including a memory device performing an internal processing operation, according to another embodiment of the inventive concept.

A system 600 of FIG. 6 may include a host device 110 a and a memory device 120. Unlike the host device 110 of the system 100 illustrated in FIG. 1, the host device 110 a may include a host processor 112 and a memory controller 114 a and may not include the PIM agent 116, and the other components may be similar to those in FIG. 1. Hereinafter, the difference from FIG. 1 will be mainly described.

Referring to FIG. 6, the memory controller 114 a may be configured to include the function of the PIM agent 116 illustrated in FIG. 1. The memory controller 114 a may control the memory device 120 to operate in the internal processing mode. The memory controller 114 a may activate and transmit an internal processing mode signal IPM to the memory device 120 through the first channel CH1 or the second channel CH2. The memory controller 114 a may receive an internal processing operation command IPCMD including an internal processing read command PIM_READ and/or an internal processing write command PIM_WRITE generated while the memory device 120 operates in the internal processing mode, from the memory device 120 through the second channel CH2. The memory controller 114 a may receive a completion signal DONE indicating that the internal processing operation is completed, from the memory device 120 through the second channel CH2.

The system 600 may include a host device 110 a and a memory device 120 for performing a computational operation. Under the control of the host device 110 a, the memory device 120 may perform an internal processing operation based on a memory request operation according to a computational operation and internal processing information IPI stored in the memory cell array 122. When the internal processing information IPI includes or is an internal processing operation command IPCMD indicating a type of the internal processing operation, the memory device 120 may transmit the internal processing operation command IPCMD to the host device 110 a. The host device 110 a may issue a data transaction command for a memory request operation to the memory device 120. The host device 110 a may issue a priority command to the memory device 120 by arbitrating between the data transaction command and the internal processing operation command IPCMD received from the memory device 120. When issuing the priority command to the memory device 120, the host device 110 a may perform a virtual memory management function including a virtual memory address translation associated with the priority command. The memory device 120 may generate a completion signal indicating completion of the internal processing operation performed based on the internal processing information IPI and transmit the completion signal to the host device 110 a.

FIG. 7 is a block diagram illustrating a server system to which a system including a memory device performing an internal processing operation, according to an embodiment of the inventive concept may be applied.

Referring to FIG. 7, a server system 700 may include a plurality of servers 100_1, 100_2, . . . , 100_N. The plurality of servers 100_1, 100_2, . . . , 100_N may include a storage device connected to a PCIe bus. Peripheral Component Interconnect Express (PCIe) is a high-speed serial computer expansion bus standard designed to replace PCI, PCI-X, and Accelerated Graphics Port (AGP) bus standards. PCIe may include a higher maximum system bus throughput, a lower I/O pin count, a smaller physical footprint, a good performance-scaling for bus devices, and a more detailed error detection, and a report mechanism. The plurality of servers 100_1, 100_2, . . . , 100_N may be connected to a manager 710. The plurality of servers 100_1, 100_2, . . . , 100_N may include or be identical or similar to the system 100 described above with reference to FIGS. 1 to 6.

Each of the plurality of servers 100_1, 100_2, . . . , 100_N may include a host device and a memory device for performing a computational operation. Under the control of the host device, the memory device may perform an internal processing operation based on a memory request operation according to a computational operation and internal processing information IMI stored in a memory cell array. When the internal processing information IMI includes or is an internal processing operation command IPCMD indicating a type of the internal processing operation, the memory device may transmit the internal processing operation command IPCMD including an internal processing read command PIM_READ and/or an internal processing write command PIM_WRITE to the host device. The host device may issue a data transaction command for the memory request operation to the memory device. The host device may issue a priority command to the memory device by arbitrating between the data transaction command and the internal processing operation command IPCMD received from the memory device. When issuing the priority command to the memory device, the host device may perform a virtual memory management function including a virtual memory address translation associated with the priority command. The memory device may generate a completion signal indicating completion of the internal processing operation performed based on the internal processing information IMI and transmit the completion signal to the host device.

FIG. 8 is a block diagram illustrating a data center to which a system including a memory device performing an internal processing operation, according to an embodiment of the inventive concept may be applied.

Referring to FIG. 8, a data center 800 may include a plurality of server systems 700_1, 700_2, . . . , 700_N. Each of the plurality of server systems 700_1, 700_2, . . . , 700_N may be similar or identical to the server system 700 illustrated in FIG. 7. The plurality of server systems 700_1, 700_2, . . . , 700_N may communicate with various nodes 810_1, 810_2, . . . , 810_M through a network 830 such as the Internet. Although the network 830 is illustrated as a separate single network, it may also be any type of network that may be generally understood by those of ordinary skill in the art. The network 830 may be a personal or public network, a wired or wireless network, or an entire or partial network. According to an embodiment, the network 830 may be a global network such as the Internet or the World Wide Web (in short, “Web”), a wide area network (WAN), or a local area network (LAN). The nodes 810_1, 810_2, . . . , 810_M may include any one of client computers, other servers, remote data centers, and storage systems.

Each of the plurality of server systems 700_1, 700_2, . . . , 700_N and/or the nodes 810_1, 810_2, . . . , 810_M may include a host device and a memory device for performing a computational operation. Under the control of the host device, the memory device may perform an internal processing operation based on a memory request operation according to a computational operation and internal processing information IMI stored in a memory cell array. When the internal processing information IMI includes or is an internal processing operation command IPCMD indicating a type of the internal processing operation, the memory device may transmit the internal processing operation command IPCMD including an internal processing read command PIM_READ and/or an internal processing write command PIM_WRITE to the host device. The host device may issue a data transaction command for the memory request operation to the memory device. The host device may issue a priority command to the memory device by arbitrating between the data transaction command and the internal processing operation command IPCMD received from the memory device. When issuing the priority command to the memory device, the host device may perform a virtual memory management function including a virtual memory address translation associated with the priority command. The memory device may generate a completion signal indicating completion of the internal processing operation performed based on the internal processing information IMI and transmit the completion signal to the host device.

Although the inventive concept has been described with reference to the embodiments illustrated in the drawings, this is merely an example and those of ordinary skill in the art will understand that various modifications and other equivalent embodiments may be derived therefrom. Thus, the spirit and scope of the inventive concept should be defined by the appended claims.

While the inventive concept has been particularly shown and described with reference to embodiments thereof, it will be understood that various changes in form and details may be made therein without departing from the spirit and scope of the following claims. 

What is claimed is:
 1. A host device comprising: a host processor configured to perform a computational operation and issue a memory request command according to the computational operation; and a memory controller configured to receive the memory request command, issue a data transaction command for accessing a memory device according to the memory request command, and control an internal processing mode of the memory device, wherein the memory controller is further configured to receive from the memory device, through dedicated signal lines, an internal processing operation command generated during an internal processing operation in the internal processing mode, and issue to the memory device a priority command determined from among the data transaction command and the internal processing operation command.
 2. The host device of claim 1, wherein the internal processing operation command comprises an internal processing read command and an internal processing write command associated with the internal processing operation.
 3. The host device of claim 1, wherein the memory controller is configured to issue the priority command to the memory device through signal lines of a first channel performing a predetermined protocol between the host device and the memory device.
 4. The host device of claim 1, wherein the memory controller is configured to transmit an internal processing mode signal instructing entry of the memory device into the internal processing mode to the memory device.
 5. The host device of claim 4, wherein the internal processing mode signal is transmitted to the memory device through signal lines of a first channel performing a predetermined protocol between the host device and the memory device.
 6. The host device of claim 4, wherein the internal processing mode signal is transmitted to the memory device through the dedicated signal lines of a second channel between the host device and the memory device.
 7. The host device of claim 1, wherein the memory controller is further configured to receive a completion signal indicating completion of the internal processing operation through the dedicated signal lines from the memory device.
 8. The host device of claim 7, wherein the internal processing operation comprises at least one of an operation of reading internal processing data comprising at least one of reference data, source data, destination data and target data, and an operation of writing a result of the other internal processing operation to the memory cell array.
 9. The host device of claim 7, wherein the internal processing operation comprises at least one of data search, data transfer, data addition and data swap with respect to the memory cell array.
 10. A method of operating a host device comprising a host processor and a memory controller, the method comprising: issuing, by the host processor, a memory request command according to a computational operation; issuing, by the memory controller, a data transaction command for accessing a memory device according to the memory request command; controlling, by the memory controller, the memory device to enter an internal processing mode; receiving, by the memory controller, an internal processing operation command generated during an internal processing operation in the internal processing mode, through dedicated signal lines, from the memory device; and issuing, by the memory controller, a priority command determined from among the data transaction command and the internal processing operation command, to the memory device.
 11. The method of claim 10, wherein the internal processing operation command comprises an internal processing read command and an internal processing write command associated with the internal processing operation.
 12. The method of claim 10, wherein the issuing, by the memory controller, the priority command to the memory device is performed through signal lines of a first channel performing a predetermined protocol between the host device and the memory device.
 13. The method of claim 10, wherein the controlling, by the memory controller, the memory device to enter the internal processing mode comprises transmitting to the memory device an internal processing mode signal instructing entry of the memory device into the internal processing mode.
 14. The method of claim 13, wherein the internal processing mode signal is transmitted to the memory device through signal lines of a first channel performing a predetermined protocol between the host device and the memory device.
 15. The method of claim 13, wherein the internal processing mode signal is transmitted to the memory device through the dedicated signal lines of a second channel between the host device and the memory device.
 16. The method of claim 10, further comprising receiving a completion signal indicating completion of the internal processing operation through the dedicated signal lines from the memory device.
 17. The method of claim 16, wherein the internal processing operation comprises at least one of an operation of reading internal processing data comprising at least one of reference data, source data, destination data and target data, and an operation of writing a result of the other internal processing operation to the memory cell array of the memory device.
 18. The method of claim 17, wherein the internal processing operation comprises at least one of data search, data transfer, data addition and data swap with respect to the memory cell array.
 19. A system comprising: a host device performing a computational operation; and a memory device performing, under control of the host device, an internal processing operation based on a memory request operation according to the computational operation and internal processing information stored in a memory cell array, wherein, the internal processing information comprises an internal processing operation command which the memory device transmits to the host device through dedicated signal lines, and wherein, according to the internal processing operation command, the host device controls the memory device to perform the internal processing operation.
 20. The system of claim 19, wherein the memory device is configured to generate a completion signal indicating completion of the internal processing operation performed based on the internal processing information, and transmit the completion signal to the host device through dedicated signal lines. 